/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-05-16
 * Time: 20:47
 */
public class test {
    public static void main(String[] args) {
       int a = 10 ;
       Integer  b = a ;
        System.out.println(b);

    }
}

class Solution {
    public int missingNumber(int[] nums) {
        final int len = nums.length + 1 ;
        int[] arr = new int[len] ;
        for(int i = 0 ; i < len - 1 ; i++){
            arr[nums[i]] = 1 ;
        }
        for(int i = 0 ; i < len  ; i ++){
            if(arr[i] == 0 ){
                System.out.println(i+1) ;
                break ;
            }

        }

    }
}
